/**
 * <p>Title: MaterialCodePropertyDao</p>
 * <p>Description: MaterialCodePropertyDao</p>
 * <p>Copyright: Shanghai Batchsight Pharmaceutical Technologies, Inc. Copyright(c) 2016</p>
 * @author Chen Wei
 * @version 1.0
 * <pre>Histroy:
 *       2016-11-22  Chen Wei
 *</pre>
*/
package cn.jhg.account.persist;

import org.bson.Document;
import org.bson.types.ObjectId;
public interface MaterialCodePropertyDao {
	/**
	 * 添加原料编码属性
	 * @param code		MaterialCode(实体)
	 * @param propId		ObjectId
	 * @return	int
	 */
	public int addCodeProperty(ObjectId propId,Document code);
	
	/**
	 * 更新原料编码属性
	 * @param code		MaterialCode(实体)
	 * @param propId		ObjectId
	 * @return	int
	 */
	public int updateCodeProperty(ObjectId propId,Document code);
	
	/**
	 * 根据 ID 查询编码属性
	 * @param ObjectId propId
	 * @return		MaterialCode 实体
	 */
	public Document getCodePropertyByPropId(ObjectId propId);
	
	/**
	 * 删除原料编码属性
	 * @param ObjectId propId	
	 * @return	int
	 */
	public int deleteCodeProperty(ObjectId propId);
}
